package model;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the taskproduct database table.
 * 
 */
@Entity
public class Taskproduct implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="taskproduct_id")
	private int taskproductId;

	private byte active;

	private BigDecimal quantity;

	@Column(name="unit_code")
	private String unitCode;

	//bi-directional many-to-one association to Product
    @ManyToOne
	@JoinColumn(name="product_id")
	private Product product;

	//bi-directional many-to-one association to Task
    @ManyToOne
	@JoinColumn(name="task_id")
	private Task task;

    public Taskproduct() {
    }

	public int getTaskproductId() {
		return this.taskproductId;
	}

	public void setTaskproductId(int taskproductId) {
		this.taskproductId = taskproductId;
	}

	public byte getActive() {
		return this.active;
	}

	public void setActive(byte active) {
		this.active = active;
	}

	public BigDecimal getQuantity() {
		return this.quantity;
	}

	public void setQuantity(BigDecimal quantity) {
		this.quantity = quantity;
	}

	public String getUnitCode() {
		return this.unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
	public Task getTask() {
		return this.task;
	}

	public void setTask(Task task) {
		this.task = task;
	}
	
}